package cn.lan.scau_hotel_service.service;

import cn.lan.scau_hotel_service.entity.Order;
import cn.lan.scau_hotel_service.entity.User;

import java.util.List;

public interface OrderService {

    Order getOrderById(int id);


    List<Order> getOrderByBooker(User user);

    boolean saveOrder(Order order);

    boolean deleteOrderById(int id);

    List<Order> findAll();
    List<Order> getOrdersByUser(User user);
}
